package cn.edu.imnu.service.impl;

import cn.edu.imnu.entry.vo.DrugListVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.edu.imnu.entry.po.Drug;
import cn.edu.imnu.service.DrugService;
import cn.edu.imnu.mapper.DrugMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author HY3423
* @description 针对表【drug】的数据库操作Service实现
* @createDate 2025-05-28 09:58:07
*/
@Service
public class DrugServiceImpl extends ServiceImpl<DrugMapper, Drug>
    implements DrugService{
    @Resource
    private DrugMapper drugMapper;

    @Override
    public List<DrugListVo> getDruglist() {
        List<DrugListVo> drugList;
        drugList = drugMapper.getDrugList();

        return drugList;
    }
}




